﻿using System.ComponentModel;
using CozeDomain.Base;
using FreeSql.DataAnnotations;

namespace CozeDomain.Entities
{
    /// <summary>
    /// 多站点租户模型
    /// </summary>
    [Table(Name = "Tenants")]
    [Description("多站点租户")]
    public class TenantsEntity : BaseEntity
    {
        /// <summary>
        /// 站点名称
        /// </summary>
        [Column(DbType = "varchar", StringLength = 30, IsNullable = false)]
        [Description("站点名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 站点域名
        /// </summary>
        [Column(DbType = "varchar", StringLength = 50, IsNullable = false)]
        [Description("站点域名")]
        public string? RealmName { get; set; }

        /// <summary>
        /// 站点通知
        /// </summary>
        [Column(DbType = "varchar", StringLength = 500, IsNullable = true)]
        [Description("站点通知")]
        public string? Notice { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(DbType = "varchar", StringLength = 500, IsNullable = true)]
        [Description("描述")]
        public string? Description { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Column(DbType = "bit", IsNullable = false)]
        [Description("状态")]
        public bool? Status { get; set; }
    }
}
